using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace WindowsFormsApplication1
{
    public partial class rptThongtinveGV : DevExpress.XtraReports.UI.XtraReport
    {
        public rptThongtinveGV()
        {
            InitializeComponent();
        }

        public void BindData(string status)
        {
            colMaGV.DataBindings.Add("Text", DataSource, "MagvID");
            colHoten.DataBindings.Add("Text", DataSource, "Hoten");
            colNgaysinh.DataBindings.Add("Text", DataSource, "NgaySinh","{0:MM/dd/yyyy}");
            colNoisinh.DataBindings.Add("Text", DataSource, "NoiSinh");
            colCMND.DataBindings.Add("Text", DataSource, "SoCMND");
            colTrinhdo.DataBindings.Add("Text", DataSource, "Tentrinhdo");
            colKhoa.DataBindings.Add("Text", DataSource, "Tenkhoa");
            colDiachi.DataBindings.Add("Text", DataSource, "Diachi");
            colDienthoai.DataBindings.Add("Text", DataSource,"Dienthoai");
            colChucdanh.DataBindings.Add("Text", DataSource, "HocHam");
            colLoaiGV.DataBindings.Add("Text", DataSource, "LoaiGV");
            colTinhtrangGD.Text = status;
            colGhichu.DataBindings.Add("Text", DataSource, "Ghichu");
        }
    }
}
